@echo off
echo Is the current directory where you would like BP software to be installed ?
echo If not, change directories and type a:install..
choice /c:yn "Yes, No "
if errorlevel 2 goto EXIT

echo Install will delete the old version of the BP software if it exists...
choice /c:cx "Continue, Exit "
if errorlevel 2 goto EXIT 

if EXIST bpjob.dll attrib -r bpjob.dll
if EXIST bpjob.dll del bpjob.dll
if EXIST bp.exe del bp.exe

a:\pkunzip a:\bp
IF EXIST bp.exe goto CHECKDLL
goto EXIT
:CHECKDLL
IF NOT EXIST bpjob.dll goto EXIT
attrib +r bpjob.dll
echo The BP software has been successfully installed...
goto DONE


:EXIT
echo Installation of the BP software has been aborted...

:DONE

